package org.electronic.registration.utils {
import org.electronic.registration.bo.Patient;

public class SessionUtils {

    private static var _instance:SessionUtils = null;

    private var _user:Patient;

    public function SessionUtils() {
        if (_instance != null) {
            throw new Error("Only one SessionUtils instance should be instantiated");
        }
    }

    public static function get instance():SessionUtils {
        if (_instance == null) {
            _instance = new SessionUtils();
        }
        return _instance;
    }

    public function get user():Patient {
        return _user;
    }

    public function set user(value:Patient):void {
        _user = value;
    }
}
}
